package com.paas.common.servlet.upload;

import java.io.*;
import java.util.Properties;

/**
 * Created by Alige on 2016/5/6.
 */
public class ReadProperties {

    public static    String  classpath;



    public static Properties  getProperties(String  config_path){
        Properties  properties =new Properties();
        InputStream in = ReadProperties.class.getClassLoader().getResourceAsStream("resource/"+config_path);

        try {
            properties.load(in);
        } catch (IOException e) {
            e.printStackTrace();
        }finally {
            return  properties;
        }

    }
}
